package com.jeeplus.common.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
@Lazy(false)
public class TaskJob {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(TaskJob.class);

	/**
	 * 每秒执行
	 */
	/*@Scheduled(cron = "0/1 * * *  *  ?")
	public void clear() {
		try {
			System.out.println("每秒执行");
		} catch (Exception e) {
			LOGGER.error(e.getMessage());
		}
	}*/
 	
}
